package sc.summary;



import java.io.IOException;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import sc.writable.IntermediateData;


/**
 * Mapper of the summary. It just sends the data to the reducer.
 * 
 * @author Quentin Rossé
 *
 */
public class SummaryMapper extends Mapper<Text, IntermediateData, Text, IntermediateData>{
	
	public void map(Text key, IntermediateData value, Context context) throws IOException, InterruptedException{
		context.write(key, value);
	}
	
	@Override
	public void setup(Context context){}
	
	@Override
	public void cleanup(Context context){}
	
}
